<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <!-- 生产环境中不建议使用 -->
    <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
    <title>Document</title>
    <style>
/* 111 */
    </style>
</head>
<body>
    <div id="app"></div>

    <script type="text/babel">
        var str = "121"
        var flag = true
        var s1 = <a href='#'>111</a>
        var c1 = {color:'blue',fontSize:'5rem'}
        ReactDOM.render(
            <div>
                <h1>hello</h1>
                <h1>{4+1}</h1>
                <h1>{str}</h1>
                <h1>{flag?"我爱你":"滚你妈的"}</h1>
                <h1>{s1}</h1>
                <h1>{str.replace('2','#')}</h1>
                <h1 className="box">hello</h1>
                <p style={c1}>你好</p>
            </div>,
            document.getElementById('app')
        )
    </script>
</body>
</html>